<?php 

var_dump($_GET);

/**
 * 获取签名
 */
function getSign()
{
    $appSecret = "xxx";
    $timestamp = time();
    $s = hash_hmac('sha256', $timestamp, $appSecret, true);
    $signature = base64_encode($s);
    var_dump($signature);
    $urlencode_signature = urlencode($signature);
    var_dump($urlencode_signature);
}
